Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Wed, 28 Oct 2020 18:53:04 +0000 (18:53 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Wed, 28 Oct 2020 18:53:04 +0000 (18:53 +0000)
commitf27f7e84fa47f12ad25c0298cea45113016f2b2a
tree10d551ebacec380d99a7d76658bcc8c50d14365c
parente064d929bf345fabf44cebd4330e61383095f731
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff
src/corelib/io/qstorageinfo_unix.cpp